<?php

namespace app\enum;

enum MessageConstant : string
{
    case PASSWORD_ERROR = "密码错误";
    case ACCOUNT_NOT_FOUND = "账号不存在";
    case ACCOUNT_LOCKED = "账号被锁定";
    case ALREADY_EXISTS = "已存在";
    case UNKNOWN_ERROR = "未知错误";
    case USER_NOT_LOGIN = "用户未登录";
    case CATEGORY_BE_RELATED_BY_SETMEAL = "当前分类关联了套餐,不能删除";
    case CATEGORY_BE_RELATED_BY_DISH = "当前分类关联了菜品,不能删除";
    case SHOPPING_CART_IS_NULL = "购物车数据为空，不能下单";
    case ADDRESS_BOOK_IS_NULL = "用户地址为空，不能下单";
    case LOGIN_FAILED = "登录失败";
    case UPLOAD_FAILED = "文件上传失败";
    case SETMEAL_ENABLE_FAILED = "套餐内包含未启售菜品，无法启售";
    case PASSWORD_EDIT_FAILED = "密码修改失败";
    case DISH_ON_SALE = "起售中的菜品不能删除";
    case SETMEAL_ON_SALE = "起售中的套餐不能删除";
    case DISH_BE_RELATED_BY_SETMEAL = "当前菜品关联了套餐,不能删除";
    case ORDER_STATUS_ERROR = "订单状态错误";
    case ORDER_NOT_FOUND = "订单不存在";
}
